<me:UIQTB x:Class="WPFExcelReport.TQEKP"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
                    xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
                    xmlns:me="clr-namespace:WPFExcelReport"  
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                    xmlns:LS="clr-namespace:WPFExcelReport;assembly=TLIEFDAT"  
                    x:Name="TV"   
                    Loaded="Window_Loaded"
     >
    <me:UIQTB.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIQTB.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel >
            <WrapPanel Height="34">
                <Grid Margin="10,0,0,0"  VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <LS:TSLS02 Grid.Column="1" MinWidth="100" 
                                   KEY="{Binding Path=LIEFNR,ElementName=TV}" 
                                   IsEdit="True"
                                    Width="Auto" />
                </Grid>
                <Grid Margin="10,0,0,0" VerticalAlignment="Top"  >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock FontSize="16"  Text="{Binding Source={Localization:Translate Word=采购单}}"/>
                    <ex:TXT72 Grid.Column="1" FontSize="16" MaxLength="2"   IsAutoClear="False" 
                               IsAutoEnter="False"
                              CharacterCasing="Upper" Text="{Binding KRS}"  
                              KeyUp="Query_KeyUp" Width="30" />
                    <ex:TXT72 Grid.Column="2" FontSize="16" Margin="5,0,0,0" MaxLength="6"  IsAutoClear="True" 
                              IsAutoEnter="False"
                              Text="{Binding LFD}"  KeyUp="Query_KeyUp"  Width="90" />
                </Grid>
          
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Label Content="{Binding Source={Localization:Translate Word=录单}}" Grid.Column="0"  HorizontalAlignment="Left" Margin="10,0,0,0"  Width="Auto" FontSize="16" />
                    <DatePicker Grid.Column="1"     HorizontalAlignment="Left" Margin="0,2,0,0"    Panel.ZIndex="4"
                            Text="{Binding DTSTART}"   KeyUp="Query_KeyUp" SelectedDateChanged ="DTSTART_SelectedDateChanged"  Width="100" />
                    <Label Content="{Binding Source={Localization:Translate Word=-}}" Grid.Column="2"   HorizontalAlignment="Left" Margin="10,0,0,0"   Width="Auto" FontSize="16" />
                    <DatePicker Grid.Column="3"    KeyUp="Query_KeyUp"  HorizontalAlignment="Left" Margin="0,0,0,0"   VerticalAlignment="Center" Panel.ZIndex="5"
                                 Text="{Binding DTEND}"    SelectedDateChanged ="DTEND_SelectedDateChanged" Width="100" />
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Label Content="{Binding Source={Localization:Translate Word=交期}}" Grid.Column="0"  HorizontalAlignment="Left" Margin="10,0,0,0"  Width="Auto" FontSize="16" />
                    <ex:NumericBox  Grid.Column="1"   Text="{Binding DTSTART1}" Width="100" /> 
                    <Label Content="{Binding Source={Localization:Translate Word=-}}" Grid.Column="2"   HorizontalAlignment="Left" Margin="10,0,0,0"   Width="Auto" FontSize="16" />
                    <ex:NumericBox  Grid.Column="3"   Text="{Binding DTEND1}" Width="100" />
                </Grid> 
            </WrapPanel> 
        </StackPanel> 
    </Grid> 
</me:UIQTB>
